<?php
include_once("class/Sys.class.php");
$sys = new Sys();
$sys_info = json_decode($sys->SysConfig(),true);

?>
<head>
    <meta charset="utf-8" />
    <?php
    $titleMap = [
        '个人中心' => $user_info["message"]["nickname"] . ' - 小蓝书',
        '笔记详情' => $exploreTitle . ' - 小蓝书'
    ];
    $keywordsMap = [
        '笔记详情' => $expinfo["tags"]
    ];
    $descriptionMap = [
        '笔记详情' => $expinfo['content']
    ];
    $WebTitle = isset($titleMap[$pageName]) ? $titleMap[$pageName] : '小蓝书 - ' . $pageName;

    if (isset($_GET['so'])&&$_GET['so']){
        $WebTitle = $_GET['so'].' 搜索结果 - 小蓝书';
    }
    $KeyWords = isset($keywordsMap[$pageName]) ? $keywordsMap[$pageName] : $sys_info['web_keywords'];
    $Des = isset($descriptionMap[$pageName]) ? $descriptionMap[$pageName] : $sys_info['web_desc'];
    ?>
    <title><?php echo $WebTitle; ?></title>
    <meta name="keywords" content="<?php echo $KeyWords; ?>" />
    <meta name="description" content="<?php echo $Des; ?>" />
    <link rel="stylesheet" href="/static/css/bootstrap.min.css" />
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/static/css/styles.css" />
    <link rel="stylesheet" href="/static/css/message.css" />
</head>
